package com.dong.mcd.pub;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface IPublicDao {

	String QUERY_PAGE_SQLMAP_ID = "queryPage";
	
	Map<String,Object>DEFAULT_PARAM = new HashMap<String, Object>();
	
	List<?> selectPage(String sqlMap,Object param,int offset,int limit);
	
	List<?> selectPage(String sqlMap,int offset,int limit);
	
	/**
	 * 根据mapper，指定分页
	 * mapper配置中的id必须是queryPage
	 * @param mapperCls
	 * @param offset
	 * @param limit
	 * @return
	 */
	List<?> selectPage(Class<?> mapperCls,Object param,int offset,int limit);
	
}
